<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWechatSettingTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat_setting', function (Blueprint $table) {
            $table->id();
            $table->string('name')->unique()->comment("配置名称");
            $table->json('mini_app')->nullable()->comment("小程序配置");
            $table->json('official_account')->nullable()->comment("公众号配置");
            $table->json('payment')->nullable()->comment("支付配置");
            $table->json('work')->nullable()->comment("企业微信配置");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wechat_setting');
    }
}
